
import '../utils/Settings.dart';
import '../utils/dio/DioMethod.dart';
import '../utils/dio/DioUtil.dart';

class UpLoadApi{

  static dynamic imageUp (formData,onSendProgress) async {
    return await DioUtil.getInstance().request(Settings.imageUploadServer,method:DioMethod.post,data: formData,onSendProgress: onSendProgress);
  }

  static dynamic fileUp (formData,onSendProgress) async {
    return await DioUtil.getInstance().request(Settings.fileUploadServer,method:DioMethod.post,data: formData,onSendProgress: onSendProgress);
  }
}